ARG DOCKER_ROS_DISTRO=melodic
FROM ros:${DOCKER_ROS_DISTRO}

# 更改国内源 ，下载速度更快
COPY sources.list /etc/apt/sources.list
COPY ros1-latest.list /etc/apt/sources.list.d/ros1-latest.list

RUN apt-get update

#安装nginx
RUN apt-get -y install nginx

#安装必要的ros依赖
RUN apt-get -y install ros-melodic-desktop-full
RUN apt-get -y install ros-melodic-moveit-*
RUN apt-get -y install ros-melodic-industrial-*
RUN apt-get -y install ros-melodic-gazebo-ros-control
RUN apt-get -y install ros-melodic-ros-control ros-melodic-ros-controllers
RUN apt-get -y install ros-melodic-trac-ik-kinematics-plugin
RUN apt-get -y install ros-melodic-usb-cam

RUN  apt install -y ros-melodic-joint-state-publisher-gui
RUN  apt install -y ros-melodic-robot-state-publisher
RUN  apt-get install -y ros-melodic-joint-state-controller
RUN  apt install -y ros-melodic-gazebo-ros-control
RUN  apt-get install -y ros-melodic-ros-controllers

RUN  apt-get install -y ros-melodic-rosbridge-suite
RUN  apt-get install -y ros-melodic-tf2-web-republisher



